#ifndef NOEDITDELEGATE_H
#define NOEDITDELEGATE_H

#include <QObject>
#include <QItemDelegate>

class NoEditDelegate : public QItemDelegate
{
    Q_OBJECT
public:
    explicit NoEditDelegate(QObject *parent = nullptr);

    // 重写 createEditor 方法，禁用第一列的编辑
    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;

signals:


};

#endif // NOEDITDELEGATE_H
